
'use strict';
module.exports = function (grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        watch: {
            script: {
                files: ["**/**/fragment/*.jade"],
                tasks: ['jade'],
                options: {
                    spawn: false
                }
            }
        },
        jade: {
            node: {
                src: ["**/**/fragment/*.jade"],
                dest: 'public/javascripts/fragment',
                options: {
                    client: true,
                    compileDebug: false
                }
            }
        },
        uglify: {
            options: {
            },
            dist: {
                files: {
                    'build/js/build.js': 'public/javascripts/**/*.js'
                }
            }
        },
        sass: {
            dist: {
                files: {
                    'build/css/build.css': 'public/scss/index.scss'
                }
            }
        }
    });
    grunt.loadNpmTasks('grunt-jade-runtime');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-sass');
    grunt.loadNpmTasks('grunt-contrib-watch');

    grunt.registerTask('default', ['jade','uglify','sass','watch',]);
};

